package book.nettyinaction.ch05;

import io.netty.buffer.ByteBufAllocator;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;

public class Demo014ByteBufAllocator {
    public static void main(String[] args) {

        // 从 Channel 获取一个到 ByteBufAllocator 的引用
        Channel channel = null;
        ByteBufAllocator allocator = channel.alloc();

        // 从 ChannelHandlerContext 获取一个到 ByteBufAllocator 的引用
        ChannelHandlerContext ctx = null;
        ByteBufAllocator allocator2 = ctx.alloc();
    }
}
